#include <QString>
#include <QDateTime>
#include <QList>

class PostReply;

class Post
{
public:
    Post(const QString &content, const QDateTime &time);

    QString content() const;
    QDateTime time() const;
    int likeCount() const;
    QList<PostReply *> replies() const;

    void addReply(PostReply *reply);
    void addLike();

private:
    QString m_content;
    QDateTime m_time;
    int m_likeCount;
    QList<PostReply *> m_replies;
};
